//
//  ZDBMyMessageTableViewCell.m
//  ZDB
//
//  Created by Kk on 2020/3/19.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ZDBMyMessageTableViewCell.h"

@implementation ZDBMyMessageTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = VIEWBGCOLOR;
    self.selectionStyle = UITableViewCellAccessoryNone;
    KViewRadius(_bgView, 2);
    _bgView.backgroundColor = WHITECOLOR;
}
- (void)setMessage:(ZDBMessage *)message
{
    _nameLab.text = message.titile;
    _contentLab.text = message.content;
    switch (message.type.integerValue) {//消息类型 1=系统通知 2=提现通知 3=积分记录
        case 1:
            [self.messIcon setBackgroundImage:[UIImage imageNamed:@"setIcon"] forState:0];
            break;
        case 2:
            [self.messIcon setBackgroundImage:[UIImage imageNamed:@"tixianIcon"] forState:0];
            break;
        case 3:
            [self.messIcon setBackgroundImage:[UIImage imageNamed:@"jifenIcon"] forState:0];
            break;
        default:
            break;
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
